<?php
class Application_Model_Form_Upload_Media extends Zend_Form
{
        public function __construct($type = 'mp3')
        {
            parent::__construct();

                        $this->setAttrib('enctype', 'multipart/form-data');

                        $image = new Zend_Form_Element_File('image');
                        $image->addValidator('Size', false, 10024000)
                                        ->addValidator('Extension', false, $type);

                        $submit = new Zend_Form_Element_Submit('go');
                        $submit->setLabel('Submit');

                        $elements = array($image, $submit);
                        $this->addElements($elements);
        }     
 }
 

?>